home *** CD-ROM | disk | FTP | other *** search
/ Power Programmierung 2 / Power-Programmierung CD 2 (Tewi)(1994).iso / gnu / gnulib / ghostscr / echoq < prev    next >
Encoding:
Text File  |  1991-09-09  |  329 b   |  8 lines

  1. # Figure out what we have to do to get a \ in the output of 'echo'.
  2. # System V `echo' strips \s, but doesn't recognize -n;
  3. # bsd `echo' does the opposite.  Figure out which one we have.
  4.     echo -n >_temp_.echo
  5.     if ( test -s _temp_.echo ) ; then echo $* \\\\; fi
  6.     if ( test \! -s _temp_.echo ) ; then echo $* \\; fi
  7.     rm _temp_.echo
  8.